from plugin import mj_prompt_optimizer
import config,os,json
with open(os.getcwd() + '/server_config.json', 'r+') as f: 
    data =json.load(f)
    config.load(data)

prompts = ['醒狮、中国传统文化','醒狮、中国传统文化 --v 5']
for p in prompts:
    result= mj_prompt_optimizer.optmize_prompt('醒狮、中国传统文化')
    print(f'result:{result}')
